Optimal. Leaf size=20 \[ \sin (a) \text{Si}\left (\frac{b}{x}\right )-\cos (a) \text{CosIntegral}\left (\frac{b}{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0273317, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3378, 3376, 3375} \[ \sin (a) \text{Si}\left (\frac{b}{x}\right )-\cos (a) \text{CosIntegral}\left (\frac{b}{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3376
Rule 3375
Rubi steps
\begin{align*} \int \frac{\cos \left (a+\frac{b}{x}\right )}{x} \, dx &=\cos (a) \int \frac{\cos \left (\frac{b}{x}\right )}{x} \, dx-\sin (a) \int \frac{\sin \left (\frac{b}{x}\right )}{x} \, dx\\ &=-\cos (a) \text{Ci}\left (\frac{b}{x}\right )+\sin (a) \text{Si}\left (\frac{b}{x}\right )\\ \end{align*}
Mathematica [A] time = 0.04694, size = 20, normalized size = 1. \[ \sin (a) \text{Si}\left (\frac{b}{x}\right )-\cos (a) \text{CosIntegral}\left (\frac{b}{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 21, normalized size = 1.1 \begin{align*} -{\it Ci} \left ({\frac{b}{x}} \right ) \cos \left ( a \right ) +{\it Si} \left ({\frac{b}{x}} \right ) \sin \left ( a \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.4209, size = 58, normalized size = 2.9 \begin{align*} -\frac{1}{2} \,{\left ({\rm Ei}\left (\frac{i \, b}{x}\right ) +{\rm Ei}\left (-\frac{i \, b}{x}\right )\right )} \cos \left (a\right ) - \frac{1}{2} \,{\left (i \,{\rm Ei}\left (\frac{i \, b}{x}\right ) - i \,{\rm Ei}\left (-\frac{i \, b}{x}\right )\right )} \sin \left (a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.57274, size = 109, normalized size = 5.45 \begin{align*} -\frac{1}{2} \,{\left (\operatorname{Ci}\left (\frac{b}{x}\right ) + \operatorname{Ci}\left (-\frac{b}{x}\right )\right )} \cos \left (a\right ) + \sin \left (a\right ) \operatorname{Si}\left (\frac{b}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.9153, size = 15, normalized size = 0.75 \begin{align*} \sin{\left (a \right )} \operatorname{Si}{\left (\frac{b}{x} \right )} - \cos{\left (a \right )} \operatorname{Ci}{\left (\frac{b}{x} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (a + \frac{b}{x}\right )}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]